package com.mao.service.impl.voucher;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.voucher.VoucherCommonDao;
import com.mao.model.voucher.VoucherBase;
import com.mao.model.voucher.VoucherType;
import com.mao.service.voucher.IVoucherCommonService;

@Service("voucherCommonService")
public class VoucherCommonServiceImpl<T> implements IVoucherCommonService<T>{

	private VoucherCommonDao voucherCommonDao;
	
	@Override
	public VoucherBase saveOrUpdateVoucher(VoucherType voucherType, VoucherBase vb) {
		// TODO Auto-generated method stub
		return voucherCommonDao.saveOrUpdateVoucher(voucherType, vb);
	}

	public VoucherCommonDao getVoucherCommonDao() {
		return voucherCommonDao;
	}

	@Autowired
	public void setVoucherCommonDao(VoucherCommonDao voucherCommonDao) {
		this.voucherCommonDao = voucherCommonDao;
	}
	
	

}
